DBConnection

Singleton object for managing the database connection.

Properties

Link copied to clipboard
val Database.groups: EntitySequence<Group, Groups>

Extension property to get the sequence of groups from the database.

Link copied to clipboard
val Database.memberships: EntitySequence<Membership, Memberships>

Extension property to get the sequence of memberships from the database.

Link copied to clipboard
val Database.users: EntitySequence<User, Users>

Extension property to get the sequence of users from the database.

Functions

Link copied to clipboard
fun getDatabaseObject(username: String? = null, password: String? = null, dbName: String? = null): Database

Gets a database object for connecting to the PostgreSQL database.